
import Vue from 'vue'
import VueRouter from 'vue-router'

import demo1 from '@/components/demo1/vuex-demo.vue'

const router = new VueRouter({
  mode: 'hash',
  routes: [
    {
      path: '/', name: 'home', children: [
        { path: '/home', component: demo1 }
      ]
    }
  ]
})

Vue.use(router)